<?php

require_once('../../includes/spip_launcher.php');

include_spip('functions/pdk_common');
//require_once(_DIR_PLUGIN_PDK.'classes/models/PdkRubriqueModel.php');
require_once(_DIR_PLUGIN_ECATALOGUE.'classes/class.ProprieteModel.php');
//require_once(_DIR_PLUGIN_ECATALOGUE.'classes/class.OptionModel.php');
//require_once(_DIR_PLUGIN_ECATALOGUE.'classes/class.GroupeModel.php');
require_once(_DIR_PLUGIN_PDK.'classes/forms/class.PdkListEditor.php');

if(isset($_POST['id_groupe'])){
    $id_groupe = intval($_POST['id_groupe']);
    $propriete_mdl = new ProprieteModel();
    $proprietes = $propriete_mdl->select('id_groupe='.$id_groupe);
    echo json_encode($proprietes);
}
?>